package com.tph.api.controller;


import com.tph.api.service.UserService;
import com.tph.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("api/user")
@Api(tags = "用户相关的操作")
public class UserController {
    @Resource
    private UserService service;

    @GetMapping("all.do")
    @ApiModelProperty("查询所有用户信息")
    public R queryAll() {
        return service.queryAll();
    }
}
